{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>车辆详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">车辆名称：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$car.car_name}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">分类：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$car.cc_name}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">缩略图：</label>
                            <div class="layui-input-block">
                                <img src="{$car.car_thumb}" style="width:400px;height:200px" class="img-circle">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">价格：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$car.car_price}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">主图片：</label>
                                {if(!empty($car.car_images.0))}
                                <div class="input-group col-sm-4">
                                    {volist name='car.car_images' id='vo'}
                                    <img id="car_images" class="img-circle" height="80px" width="80px" style="float:left;margin-left: 50px;margin-top:5px;cursor:pointer;" src="{$vo}" onclick='imgDisplay(this)'/>
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">外观图片：</label>
                                {if(!empty($car.car_out_images.0))}
                                <div class="input-group col-sm-4">
                                    {volist name='car.car_out_images' id='vo'}
                                    <img id="car_out_images" class="img-circle" height="80px" width="80px" style="float:left;margin-left: 50px;margin-top:5px;cursor:pointer;" src="{$vo}" onclick='imgDisplay(this)'/>
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">中控图片：</label>
                                {if(!empty($car.car_middle_images.0))}
                                <div class="input-group col-sm-4">
                                    {volist name='car.car_middle_images' id='vo'}
                                    <img id="car_middle_images" class="img-circle" height="80px" width="80px" style="float:left;margin-left: 50px;margin-top:5px;cursor:pointer;" src="{$vo}" onclick='imgDisplay(this)'/>
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">座椅图片：</label>
                                {if(!empty($car.car_chair_images.0))}
                                <div class="input-group col-sm-4">
                                    {volist name='car.car_chair_images' id='vo'}
                                    <img id="car_chair_images" class="img-circle" height="80px" width="80px" style="float:left;margin-left: 50px;margin-top:5px;cursor:pointer;" src="{$vo}" onclick='imgDisplay(this)'/>
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">细节图片：</label>
                                {if(!empty($car.car_detail_images.0))}
                                <div class="input-group col-sm-4">
                                    {volist name='car.car_detail_images' id='vo'}
                                    <img id="car_detail_images" class="img-circle" height="80px" width="80px" style="float:left;margin-left: 50px;margin-top:5px;cursor:pointer;" src="{$vo}" onclick='imgDisplay(this)'/>
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">特点图片：</label>
                                {if(!empty($car.car_special_images.0))}
                                <div class="input-group col-sm-4">
                                    {volist name='car.car_special_images' id='vo'}
                                    <img id="car_special_images" class="img-circle" height="80px" width="80px" style="float:left;margin-left: 50px;margin-top:5px;cursor:pointer;" src="{$vo}" onclick='imgDisplay(this)'/>
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">车辆长图：</label>
                                {if(!empty($car.car_long_images.0))}
                                <div class="input-group col-sm-4">
                                    {volist name='car.car_long_images' id='vo'}
                                    <img id="car_long_images" class="img-circle" height="80px" width="80px" style="float:left;margin-left: 50px;margin-top:5px;cursor:pointer;" src="{$vo}" onclick='imgDisplay(this)'/>
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">是否推荐：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$car.car_is_tuijian==1?'已推荐':'未推荐'}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">介绍：</label>
                            <div class="layui-input-block" id="LAY_editor" lay-verify="editor">
                                <p>{$car.car_detail}</p>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript" src="__JS__/webupload/webuploader_upload.js"></script>
<script>
    var editor = wk.wang({elem:'#LAY_editor'});
</script>

</body>
</html>
